package com.gxc.controller;

import com.gxc.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author GongXincheng
 * @since 2019-09-03 14:30
 */
@RestController
public class HelloController {

    @GetMapping
    public User hello() {
        User user = new User();
        user.setAge(1);
        user.setName("gxc");
        user.setCreateOn(LocalDateTime.now());
        user.setUpdateOn(new Date());
        return user;
    }

}
